﻿<%@ page language="C#" autoeventwireup="true" codebehind="ChangeDevice.aspx.cs" inherits="H2.NET.Web.Pages.SMD.ChangeDevice" %>

<%@ register src="../../Controls/DwzAssessment.ascx" tagname="DwzAssessment" tagprefix="uc" %>
<%@ register src="../../Controls/DwzAssessmentList.ascx" tagname="DwzAssessmentList" tagprefix="uc" %>
<%@ register src="../../Controls/AjaxUpload.ascx" tagname="ajaxUpload" tagprefix="uc" %>
<%@ register src="uc_change_field.ascx" tagname="uc_change_field" tagprefix="uc" %>
<%@ register src="uc_store_info.ascx" tagname="uc_store_info" tagprefix="uc" %>
<%@ register src="uc_head.ascx" tagname="uc_head" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
<head id="Head1" runat="server">
    <title>设备主数据变更</title>
    <link href="<%=Page.ResolveUrl("~/Resource/Css/Style.css")%>" type="text/css" rel="stylesheet" />
    <link href="<%=Page.ResolveUrl("~/Resource/jBox/Blue/jbox.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%=Page.ResolveUrl("~/Resource/Css/validform.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%=Page.ResolveUrl("~/Resource/qtip/jquery.qtip.min.css")%>" rel="stylesheet" type="text/css" />
    <script src="<%=Page.ResolveUrl("~/Resource/dwz/js/jquery-1.7.2.min.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/Js/Common.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/Js/jquery.money.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/jBox/jquery.jBox-2.3.min.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/jBox/jquery.jBox-zh-CN.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/Js/Validform_v5.3.2.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/My97DatePicker/WdatePicker.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/qtip/jquery.qtip.min.js")%>" type="text/javascript"></script>
    <!--[if lt IE 8 ]><script src="<%=Page.ResolveUrl("~/Resource/Js/json2.min.js")%>" type="text/javascript"></script><![endif]-->
    <script type="text/javascript">
        $(function () {
            /* 初始化相关样式、表单验证提示 st */
            $("[datatype='*']").after("<em class='required'>*</em>");
            $("#form1").Validform({
                tipSweep: true,
                tiptype: function (msg, o, cssctl) {
                    if (o.type == 3) {
                        $.jBox.tip(msg, 'info');
                    }
                }
            });
            /* 初始化相关样式、表单验证提示 ed */
            // 双击选择门店之后跳转的url
            $("#return_url").val('<%=Page.ResolveUrl("~/pages/smd/ChangeDevice.aspx?TaskID=" + TaskAPI.TaskID)%>');


            /* 初始化控件提示 st */
            $.ajax({
                type: 'POST',
                url: '<%=Page.ResolveUrl("~/pages/smd/ajaxtools/handler.ashx?action=get_tips")%>',
                data: { pagename: 'changedevice.aspx' },
                dataType: "json",
                cache: false,
                success: function (json) {
                    for (var o in json) {
                        var ControlID = json[o].ControlID;
                        var Content = json[o].Content;
                        $("#" + ControlID).qtip({
                            content: Content
                        });
                    }
                }
            });
            /* 初始化控件提示 ed */
        });

        /* 提交表单 st */
        function confirmSubmit() {
            if (window.confirm("确认要提交吗？")) {
                $.jBox.tip('正在处理，请稍等...', 'loading');
                return true;
            }
            return false;
        }
        /* 提交表单 ed */
    </script>
</head>
<body>
    <div class="flowpage">
        <form id="form1" runat="server">
            <!-- 标题 st -->
            <uc1:uc_head id="uc_head1" runat="server" />
            <!-- 标题 ed -->

            <table class="formTable">
                <!-- 门店基本信息 st -->
                <uc:uc_store_info id="uc_store_info1" runat="server" />
                <!-- 门店基本信息 ed -->

                <!-- 设备主数据 st -->
                <tbody id="tb_DeviceInfo" runat="server">
                    <tr>
                        <td colspan="6" class="title">设备信息</td>
                    </tr>
                    <tr>
                        <th>设备列表：</th>
                        <td>
                            <asp:DropDownList ID="ddl_FullSetSN" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddl_FullSetSN_SelectedIndexChanged"></asp:DropDownList>
                            <asp:Label ID="l_FullSetSNList" runat="server"></asp:Label>
                        </td>
                        <th style="width: 14%;">固定资产号：</th>
                        <td style="width: 20%;">
                            <asp:TextBox ID="FullSetSN" CssClass="readonly" ReadOnly runat="server"></asp:TextBox>
                            <asp:Literal ID="l_FullSetSN" runat="server" Text=""></asp:Literal>
                        </td>
                        <th>安装时间：</th>
                        <td>
                            <asp:TextBox ID="InstallDate" runat="server" CssClass="Wdate readonly" disabled="disabled" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"></asp:TextBox>
                            <asp:Literal ID="l_InstallDate" runat="server" Text=""></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <th style="width: 14%;">机器初购年份：</th>
                        <td style="width: 20%;">
                            <asp:TextBox ID="PurchasedDate" runat="server" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy'})"></asp:TextBox>
                            <asp:Literal ID="l_PurchasedDate" runat="server" Text=""></asp:Literal>
                        </td>
                        <th style="width: 14%;">美萍号：</th>
                        <td style="width: 20%;" colspan="3">
                            <asp:TextBox ID="MeiPinNo" runat="server" CssClass="readonly" ReadOnly></asp:TextBox>
                            <asp:Literal ID="l_MeiPinNo" runat="server" Text=""></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <th style="width: 14%;">设备状态：</th>
                        <td style="width: 20%;">
                            <asp:DropDownList ID="Status" runat="server">
                                <asp:ListItem Value="">==请选择==</asp:ListItem>
                            </asp:DropDownList>
                            <asp:Literal ID="l_Status" runat="server" Text=""></asp:Literal>
                        </td>
                        <th style="width: 14%;">设备是否转固：</th>
                        <td style="width: 20%;">
                            <asp:RadioButton GroupName="IsTurnSolid" ID="IsTurnSolid1" disabled="disabled" runat="server" Text="是" value="是" />
                            <asp:RadioButton GroupName="IsTurnSolid" ID="IsTurnSolid2" disabled="disabled" runat="server" Text="否" value="否" />
                            <asp:Literal ID="l_IsTurnSolid" runat="server" Text=""></asp:Literal>
                        </td>
                        <th style="width: 14%;">发放方式：</th>
                        <td style="width: 20%;">
                            <asp:DropDownList ID="DeliveryType" disabled="disabled" runat="server">
                                <asp:ListItem Value="">==请选择==</asp:ListItem>
                            </asp:DropDownList>
                            <asp:Literal ID="l_DeliveryType" runat="server" Text=""></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <th style="width: 13%;">调色机型号：</th>
                        <td style="width: 20%;">
                            <asp:DropDownList ID="ddl_DispenserModel" disabled="disabled" runat="server">
                                <asp:ListItem Text="==请选择==" Value=""></asp:ListItem>
                            </asp:DropDownList>
                            <asp:Literal ID="l_DispenserModel" runat="server"></asp:Literal>
                        </td>
                        <th>调色机固定资产号：</th>
                        <td>
                            <asp:TextBox ID="tb_DispenserFixedAsset" CssClass="readonly" ReadOnly runat="server"></asp:TextBox>
                            <asp:Literal ID="l_DispenserFixedAsset" runat="server"></asp:Literal>
                        </td>
                        <th>调色机序列号：</th>
                        <td>
                            <asp:TextBox ID="tb_DispenserSN" CssClass="readonly" ReadOnly runat="server"></asp:TextBox>
                            <asp:Literal ID="l_DispenserSN" runat="server"></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <th>震荡机型号：</th>
                        <td>
                            <asp:DropDownList ID="ddl_ShakerModel" disabled="disabled" runat="server">
                                <asp:ListItem Text="==请选择==" Value=""></asp:ListItem>
                            </asp:DropDownList>
                            <asp:Literal ID="l_ShakerModel" runat="server"></asp:Literal>
                        </td>
                        <th>震荡机固定资产号：</th>
                        <td>
                            <asp:TextBox ID="tb_ShakerFixedAsset" CssClass="readonly" ReadOnly runat="server"></asp:TextBox>
                            <asp:Literal ID="l_ShakerFixedAsset" runat="server"></asp:Literal>
                        </td>
                        <th>震荡机序列号：</th>
                        <td>
                            <asp:TextBox ID="tb_ShakerSN" CssClass="readonly" ReadOnly runat="server"></asp:TextBox>
                            <asp:Literal ID="l_ShakerSN" runat="server"></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <th>电脑型号：</th>
                        <td>
                            <asp:DropDownList ID="ddl_PcModel" disabled="disabled" runat="server">
                                <asp:ListItem Text="==请选择==" Value=""></asp:ListItem>
                            </asp:DropDownList>
                            <asp:Literal ID="l_PcModel" runat="server"></asp:Literal>
                        </td>
                        <th>电脑固定资产号：</th>
                        <td>
                            <asp:TextBox ID="tb_PcFixedAsset" CssClass="readonly" ReadOnly runat="server"></asp:TextBox>
                            <asp:Literal ID="l_PcFixedAsset" runat="server"></asp:Literal>
                        </td>
                        <th>电脑序列号：</th>
                        <td>
                            <asp:TextBox ID="tb_PcSN" CssClass="readonly" ReadOnly runat="server"></asp:TextBox>
                            <asp:Literal ID="l_PcSN" runat="server"></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <th>设备地址：</th>
                        <td colspan="5">
                            <asp:TextBox ID="tb_Address" runat="server" Style="width: 80%"></asp:TextBox>
                            <asp:Label ID="l_Address" runat="server"></asp:Label>
                        </td>
                    </tr>
                </tbody>
                <!-- 设备主数据 ed -->

                <!-- 字段变更列表 st -->
                <tbody id="tb_changelogs" runat="server">
                    <tr>
                        <th>字段变更列表：</th>
                        <td colspan="5">
                            <uc:uc_change_field id="uc_change_field1" runat="server" />
                        </td>
                    </tr>
                </tbody>
                <!-- 字段变更列表 ed -->

                <!-- 审批列表 st -->
                <tbody id="assessment" runat="server" visible="false">
                    <tr>
                        <td class="title" colspan="6">审批列表</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <uc:dwzassessmentlist id="DwzAssessmentList1" runat="server" />
                        </td>
                    </tr>
                </tbody>
                <!-- 审批列表 ed -->

                <!-- 相关附件 st -->
                <tbody>
                    <tr>
                        <th>相关附件：</th>
                        <td colspan="5">
                            <uc:ajaxupload id="ajaxUpload1" runat="server" />
                        </td>
                    </tr>
                </tbody>
                <!-- 相关附件 ed -->

                <!-- 审批意见 st -->
                <tbody>
                    <uc:dwzassessment id="DwzAssessment1" runat="server" />
                </tbody>
                <!-- 审批意见 ed -->
            </table>
            <%  if(H2.NET.Common.AksRequest.GetString("showbtn") != "0")
            { %>
            <div style="margin: 5px; padding-bottom: 10px; text-align: center;">
                <asp:Button ID="btn_submit" runat="server" CssClass="u-btn" Text="提交(Submit)" OnClick="btn_submit_Click" OnClientClick="return confirmSubmit();" />
                <input type="button" class="u-btn u-btn-c4" value="关闭(Close)" onclick="custom_close()" />
                <asp:HyperLink ID="hl_ExportPdf" runat="server" Visible="false" Target="_blank" CssClass="u-btn u-btn-c3" Style="height: 28px; line-height: 28px; display: inline-block;">生成(PDF)</asp:HyperLink>
                <asp:Button ID="btn_print" runat="server" CssClass="u-btn u-btn-c2" Text="打印(Print)" OnClientClick="window.print()" Visible="false" />
            </div>
            <%  } %>
        </form>
    </div>
</body>
